package org.jeecg.modules.demo.qualityOrder.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: 采购订单
 * @Author: jeecg-boot
 * @Date:   2021-11-26
 * @Version: V1.0
 */
@Data
@TableName("pu_buy_order")
@ApiModel(value="pu_buy_order对象", description="采购订单")
public class PuBuyOrderToQualityOrder implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键ID")
    private java.lang.String id;
	/**采购订单号*/
    @Excel(name = "采购订单号", width = 15)
    @ApiModelProperty(value = "采购订单号")
    private java.lang.String poOrder;
	/**职工号*/
    @Excel(name = "职工号", width = 15)
    @ApiModelProperty(value = "职工号")
    private java.lang.String staffNo;
	/**合同编号*/
    @Excel(name = "合同编号", width = 15)
    @ApiModelProperty(value = "合同编号")
    private java.lang.String puConNo;
	/**订货日期*/
    @Excel(name = "订货日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "订货日期")
    private java.util.Date poDate;
	/**截止日期*/
    @Excel(name = "截止日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "截止日期")
    private java.util.Date poEnddate;
	/**业务员*/
    @Excel(name = "业务员", width = 15)
    @ApiModelProperty(value = "业务员")
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private java.lang.String poStaff;
	/**订单总量*/
    @Excel(name = "订单总量", width = 15)
    @ApiModelProperty(value = "订单总量")
    private java.math.BigDecimal poTotail;
	/**最小量*/
    @Excel(name = "最小量", width = 15)
    @ApiModelProperty(value = "最小量")
    private java.math.BigDecimal poMin;
	/**最大量*/
    @Excel(name = "最大量", width = 15)
    @ApiModelProperty(value = "最大量")
    private java.math.BigDecimal poMax;
	/**创建时间*/
    @Excel(name = "创建时间", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private java.util.Date poCreateDate;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;

    @Dict(dicCode= "checkState")
    private Integer shenhe;

    private Integer shanchu;

    private Integer zhijian;

    //运输方式
    private String transport;

    //合同号
    private String hth;
    //项目
    @Dict(dictTable = "PJ_PROJECT",dicCode = "ID",dicText = "PJ_NAME")
    private String project;
    //含税单价
    private Double hsdj;
    //含税金额
    private Double hsje;
    //单价
    private Double wsdj;
    //金额
    private Double wsje;
    /**税额*/
    @Excel(name = "税额", width = 15)
    @ApiModelProperty(value = "税额")
    private java.math.BigDecimal psTax;
    /**税率*/
    @Excel(name = "税率", width = 15)
    @ApiModelProperty(value = "税率")
    @Dict(dicCode = "tax_rate")
    private java.lang.Integer psTaxrat;

    //计量单位
    private String measureunit;

    private String zhilzbjson;

    private String zhilzb;

    private String realzb;
    //存货名称
    private String cinvname;

    private String chumdwmc;
    private String ywlx;

    private String remark;

    //审核人
    @Dict(dictTable = "SYS_USER",dicCode = "ID",dicText = "REALNAME")
    private String checkmen;

    //部门
    @Dict(dictTable = "SYS_DEPART",dicCode = "ID",dicText = "DEPART_NAME")
    private String department;

    private BigDecimal zjtotal;

    /**发站名称*/
    @Excel(name="发站名称",width=15)
    private java.lang.String fazbm;
    /**到站名称*/
    @Excel(name="到站名称",width=15)
    private java.lang.String daozbm;

    private String htfj;
    private Integer ykhx;
    /**
     * 租户ID
     */
    private Integer tenantId;
    private BigDecimal yhxTotail;
    private BigDecimal yhxMoney;
    private  String tradecode;
    /**创建日期*/
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private Date shTime;

    private Integer documentType;
    @Dict(dicCode = "odlx")
    private Integer odlx;
    /**
     * 创建人
     */
    private String createBy;


    private String sysOrgCode;
}
